﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Phoenix.AppCode.Entities;
using Phoenix.AppCode.Data;
using System.Data;

namespace Phoenix.AppCode.Bussiness
{
    public class TrackingEListService
    {
        public TrackingEListService() 
        {
            //
            // TODO: Add constructor logic here
            //    
        }

        #region Backend Method
        /// <summary>
        /// Create 
        /// </summary>
        /// <param name="trackingelist"></param>
        public static void Create(TrackingEList trackingelist)
        {
            TrackingEListDAO trackingelistDAO = new TrackingEListDAO();
            trackingelistDAO.Create(trackingelist);
        }

        /// <summary>
        /// Edit
        /// </summary>
        /// <param name="trackingelist"></param>
        public static void Edit(TrackingEList trackingelist)
        {
            TrackingEListDAO trackingelistDAO = new TrackingEListDAO();
            trackingelistDAO.Edit(trackingelist);
        }

        /// <summary>
        /// On/Off
        /// </summary>
        /// <param name="trackingelist"></param>
        public static void OnOff(TrackingEList trackingelist)
        {
            TrackingEListDAO trackingelistDAO = new TrackingEListDAO();
            trackingelistDAO.OnOff(trackingelist);
        }

        /// <summary>
        /// Delete
        /// </summary>
        /// <param name="trackingelist"></param>
        public static void Delete(TrackingEList trackingelist)
        {
            TrackingEListDAO trackingelistDAO = new TrackingEListDAO();
            trackingelistDAO.Delete(trackingelist);
        }

        /// <summary>
        /// Show category all
        /// </summary>
        /// <param name="language"></param>
        /// <returns></returns>
        public static DataTable TrackingEListList(string language)
        {
            TrackingEListDAO trackingelistDAO = new TrackingEListDAO();
            return trackingelistDAO.TrackingEListList(language);
        }

        /// <summary>
        /// Show all
        /// </summary>
        /// <param name="language"></param>
        /// <returns></returns>
        public static DataTable TrackingEListListById(int idtrackinge, string language)
        {
            TrackingEListDAO trackingelistDAO = new TrackingEListDAO();
            return trackingelistDAO.TrackingEListListById(idtrackinge,language);
        }

        /// <summary>
        /// Show data by ID
        /// </summary>
        /// <param name="idtrackingelist"></param>
        /// <returns></returns>
        public static DataTable TrackingEListList_GetByID(int idtrackingelist)
        {
            TrackingEListDAO trackingelistDAO = new TrackingEListDAO();
            return trackingelistDAO.TrackingEListList_GetByID(idtrackingelist);
        }

        /// <summary>
        /// Get ID to edit or delete 
        /// </summary>
        /// <param name="idtrackingelist"></param>
        /// <returns></returns>
        public static TrackingEList GetTrackingEListByID(int idtrackingelist)
        {
            TrackingEListDAO trackingelistDAO = new TrackingEListDAO();
            return trackingelistDAO.GetTrackingEListByID(idtrackingelist);
        }
        #endregion
    }
}